import {BasePage, BaseInput} from "../../../../ts/type";
import {replace} from "../../../../ts/util";

export let dictDataDetailInit = (page: BasePage) => {
    let detailModel = page.models.filter(m => 'detail' == m.formKey)[0]
    detailModel.formInputs.push(replace(new BaseInput('id', 'id'), {
        hidden: true
    }))
// field input auto
// #bind.field.dictCode#
    detailModel.formInputs.push(replace(new BaseInput('字典编码', 'dictCode'), {
        span: 12
    }))
// $bind.field.dictCode$

// #bind.field.dictValue#
    detailModel.formInputs.push(replace(new BaseInput('字典Value', 'dictValue'), {
        span: 12
    }))
// $bind.field.dictValue$

// #bind.field.dictLabel#
    detailModel.formInputs.push(replace(new BaseInput('字典Label', 'dictLabel'), {
        span: 12
    }))
// $bind.field.dictLabel$

// #bind.field.dictOrder#
    detailModel.formInputs.push(replace(new BaseInput('排序', 'dictOrder'), {
        inputType: 'number',
        span: 12
    }))
// $bind.field.dictOrder$


}